package com.study.teacher;

public class PurchaseApp {
	public static void main(String args[]){
		PurchaseForm form  =  new PurchaseForm();
		form.setPrice(200000.0);
		
		Leader leader = new Leader();
		Manager manager = new Manager();
		President president = new President();
		
		leader.setSuccessor(manager);
		manager.setSuccessor(president);
		president.setSuccessor(null);
		
		leader.process(form);
				
	}
}
